package com.example.demo.controller;

import com.example.demo.model.ListData;
import com.example.demo.model.Student;
import lombok.Data;
import lombok.NonNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collections;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-08-03
 * Time: 16:30
 */

@RestController
//@PropertySource("classpath:abcd.yml")
public class TestController {

//    @Value("${mine.name}")
//    private String name;
//
//    @Value("${mine.id}")
//    private float id;
//
//    @Value("${mine.score}")
//    private Float score;
//
//    @Value("${mine.is_bro}")
//    private Boolean isBro;

//    @Autowired
//    private Student student;

//    @Autowired
//    private ListData listData;

    @Value("${word}")
    private String word;
    @RequestMapping("/say_hi")
    public String sayHi() {
//        return name + " " + id + " " + score + " " + isBro;
//        return student.toString();
//        return listData.toString();
        return word;
    }


}
